package com.heima.minio;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import sun.nio.ch.ThreadPool;

import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;


//@SpringBootApplication
public class MinIOApplication {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        while(sc.hasNextLine()){
//            String s[]=sc.nextLine().split(" ");
//            int a=Integer.parseInt(s[0]);
//            int b=Integer.parseInt(s[1]);
//            System.out.println(a+b);
//        }
//        new ThreadPoolExecutor()
//        ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(爱死QT);
//        executor.setMaxPoolSize();
//        new ThreadPoolExecutor(1,5,300,)
//
//        for (int i = 0; i < 20; i++) {
//            try {
//                Thread.sleep(2000l);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//            System.out.println("牛逼");
//        }
//        newCachedThreadPool().execute(new Runnable() {
//            @Override
//            public void run() {
//                System.out.println("线程2");
//            }
//        });
//        Date date = new Date();
//        SimpleDateFormat dateFm = new SimpleDateFormat("EEEE");
//        String currSun = dateFm.format(date);
//        System.out.println(currSun);

        Random random = new Random();
        Map<Integer, String> map = new HashMap<>();
        map.put(1,"李越");
        map.put(2,"唐彰");
        map.put(3,"陈彦青");
        map.put(4,"黄曼萍");
        map.put(5,"刘涛");
        map.put(6,"唐镇翅");
        map.put(7,"龙心远");
        map.put(8,"匡紫娟");
        map.put(9,"黄皓南");
        Map<Integer, String> map1 = new HashMap<>();
        map1.put(1,"12k");
        map1.put(2,"13k");
        map1.put(3,"6k");
        map1.put(4,"9k");
        map1.put(5,"3k");
        map1.put(6,"20k");
        map1.put(7,"15k");
        map1.put(8,"10k");
        map1.put(9,"8k");
        Integer a=random.nextInt(9)+1;
        Integer i=random.nextInt(9)+ 1;
        map.forEach((integer, s) -> {
            map1.forEach((integer2, p)->{
                if (integer==a){
                    if (integer2==i){
                        System.out.println(s+"-->"+p);
                    }
                }
            });
        });
//        SpringApplication.run(MinIOApplication.class,args);
    }
}